package com.lanou3g.hw0408;

/**
 * Created by dllo on 18/4/8.
 */
public class Ship {
    private String name;
    private int weight;
    private int speed;

    //specifications 规格
    public void specifications() {
        System.out.println("这个叫:" + name + "速度是" + speed + "节" +
                "重量是" + weight + "吨");
    }

    public Ship() {
    }

    public Ship(String name, int weight, int speed) {
        this.weight = weight;
        this.speed = speed;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }
}
